package com.cwnu.sw.cys.core.websocket.service;

import com.cwnu.sw.cys.core.websocket.domain.vo.req.WSAuthorizeReq;
import com.cwnu.sw.cys.core.websocket.domain.vo.req.WSBaseReq;
import com.cwnu.sw.cys.core.websocket.domain.vo.resp.WSBaseResp;
import io.netty.channel.Channel;
import me.chanjar.weixin.common.error.WxErrorException;

public interface WebSocketService {
    void connect(Channel channel);

    void handleLoginReq(Channel channel, WSBaseReq req) throws WxErrorException;

    void remove(Channel channel);
    Boolean scanLoginSuccess(Integer code,Long uid);

    void authorize(Channel channel, WSAuthorizeReq wsAuthorizeReq);

    Boolean scanSuccess(Integer loginCode);
    void sendToAllOnline(WSBaseResp<?> wsBaseResp, Long skipUid);
}
